import Vue from 'vue'
import Router from 'vue-router'
import HelloWinni from '@/pages/HelloWinni'
import Xinhua from '@/pages/xinhua'
import Pizza from '@/pages/pizza'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWinni',
      component: HelloWinni,
      children: [{
        path: 'xinhua',
        name: "xinhua",
        component: Xinhua
      },{
        path: 'pizza',
        name: 'pizza',
        component: Pizza
      }]
    }
  ]
})
